<template>
  <div>
    <span>图片</span>
    <!-- <img src="./head.jpg" alt=""> -->
    <el-image :src="url" class="img-container">
      <div slot="error" class="image-slot">
        <img src="./head.jpg" alt="">
      </div>
    </el-image>
  </div>
</template>

<script>
export default {
  props: {
    url: {
      type: String,
      default: ''
    //   required: true
    }
  }
}
</script>

<style scoped lang="scss">
.img-container {
  border-radius: 50%;
  img{
    width: 100%;
  }
}
</style>

